<?php

namespace App;

use App\Events\PersonSaving;
use Illuminate\Database\Eloquent\Model;

class Person extends Model
{
    /**
     * @var string[]
     */
    public $fillable = ['name', 'age'];

    /**
     * @var string
     */
    public $table = 'people';

    public $guarded = [];

    /**3
     * @var string[]
     */
    public $dispatchesEvents = [
        'saving' => PersonSaving::class
    ];
}
